import 'package:niuren_demo/page/dynamic/contant/transaction/entrust_page.dart';

class EntrustItem_Model{
  final String date;
  final String time;
  final String tip1;
  final String tip2;
  final int num;
  final String price;
  final String documentary;
  final int entrust;
  final int revoke;
  final int deal;

  EntrustItem_Model({this.date,this.time, this.tip1, this.tip2, this.num, this.price, this.documentary, this.entrust, this.revoke, this.deal});

  factory EntrustItem_Model.fromJson(Map<String, dynamic> json) {
    return EntrustItem_Model(
      date: json['date'],
      time: json['time'],
      tip1: json['tip1'],
      tip2: json['tip2'],
      num: json['num'],
      price: json['price'],
      documentary: json['documentary'],
      entrust: json['entrust'],
      revoke: json['revoke'],
      deal: json['deal'],
    );
  }

  Map<String, dynamic> toJson() => {
    'date':date,
    'time': time,
    'tip1': tip1,
    'tip2': tip2,
    'num' : num,
    'price' : price,
    'documentary' : documentary,
    'entrust' : entrust,
    'revoke' : revoke,
    'deal' : deal,
  };
}